import request from '@/utils/request'

// 查询干扰源列表
export function listInterferenceData(query) {
  return request({
    url: '/system/interference/list',
    method: 'get',
    params: query
  })
}

// 查询干扰源详细
export function getInterferenceData(id) {
  return request({
    url: '/system/interference/' + id,
    method: 'get'
  })
}

// 新增干扰源
export function addInterferenceData(data) {
  return request({
    url: '/system/interference',
    method: 'post',
    data: data
  })
}

// 修改干扰源
export function updateInterferenceData(data) {
  return request({
    url: '/system/interference',
    method: 'put',
    data: data
  })
}

// 删除干扰源
export function delInterferenceData(id) {
  return request({
    url: '/system/interference/' + id,
    method: 'delete'
  })
}